﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace vJineCore_QuickStart.BML {
    [Serializable]
    public class BizEntity {

        [XmlAttribute]
        public string Name { get; set; }

        [XmlAttribute]
        public int Number { get; set; }

        [XmlAttribute]
        public Enum_Type ENUM { get; set; }


        public class _ {
            public static readonly vJine.Core.ORM.Property<BizEntity, string> Name =
                new vJine.Core.ORM.Property<BizEntity, string>("Name");

            public static readonly vJine.Core.ORM.Property<BizEntity, int> Number =
                new vJine.Core.ORM.Property<BizEntity, int>("Number");

            public static readonly vJine.Core.ORM.Property<BizEntity, Enum_Type> ENUM =
                new vJine.Core.ORM.Property<BizEntity, Enum_Type>("ENUM");
        }
    }

    public enum Enum_Type : byte {
        E00 = 0x00,
        E01 = 0x01,
        E02 = 0x02,
        E03 = 0x03
    }
}
